<?php

return array(
    'document_root' => '/00_My_cms_v1_sLang/public/frontend/',

    'page_size' => 20,
    'front_page_size' => 5,
    
    'upload_dir' => __DIR__ . '/../../public/upload/',
    'upload_url' => '../upload/',
    'store_dir'  => __DIR__ . '/../../public/upload/store/',
    'store_url'  => '../upload/store/',
    'tempo_dir' => __DIR__ . '/../../public/upload/tempo/',
    'tempo_url' => '/../upload/tempo/',
    
    'components_dir'    => __DIR__ . '/../../public/upload/components/',
    'mail_template_dir' => __DIR__ . '/mail/',
    
    'newsletter_image' => array( //unit is pixel
        'basename'     => 'newsletters', //the directory in upload dir
        'max_width'    => '940',
        'max_height'   => '800',
        'max_size'     => '10', //10MB
        'upload_dir'    => __DIR__ . '/../../public/upload/newsletters/',
        'upload_url'    => '../upload/newsletters/',
        'thumb_width'  => '220',
        'thumb_height' => '147',
        'thumb_dir'    => __DIR__ . '/../../public/upload/newsletters/thumb/',
        'thumb_url'    => '../upload/newsletters/thumb/',
        'thumb_bg'     => array(255, 255, 255), //white
        'elfinder' => array(
            'base_path' => '../../../../../upload/newsletters/', //path from assets to upload dir
            'base_url'  => '/00_My_cms_v1_sLang/public/upload/newsletters/',
        ),
    ),

    'stmp_configuration' => array(
        'domain'           => 'smtp.gmail.com', //Gmail
        'port'             => 587,
        'from_name'        => 'Y Khoa Tam An',
        'username'         => 'chonden.noreply@gmail.com',
        'password'         => '999@#Acb',
//        'domain'           => 'mail.chonden.com', //Hostmonster
//        'port'             => 25,
//        'from_name'        => 'Y Khoa Tam An',
//        'username'         => 'noreply@chonden.com',
//        'password'         => '999@#Acb',
//        'domain'           => 'email-smtp.us-east-1.amazonaws.com', //Amazon - SES
//        'port'             => 587,
//        'from_name'        => 'BCB.CachDayCon@gmail.com',
//        'username'         => 'AKIAJUNEJ4PYS43SYWWQ',
//        'password'         => 'AjYM2szlfBzGvYcQQ1y8xs+x1rk354DWfiz5VdHEZeSW',
//        'default_subject'  => '[YKhoaTamAn] Lien He',
        'default_receiver' => array(
            'qtdat2.9@gmail.com',
        ),
    ),
    
    'slideshow' => array( //unit is pixel
        'basename'         => 'slideshows', //the directory in upload dir
        'plupload_session' => 'pluploaded_file',
        'width'            => '940',
        'height'           => '430',
        'max_size'         => '10', //10MB
        'thumb_width'      => '200',
        'thumb_height'     => '200',
        'thumb_bg'         => array(255, 255, 255), //white
    ),
    'banner' => array( //unit is pixel
        'basename'         => 'slideshows', //the directory in upload dir
        'plupload_session' => 'pluploaded_file',
        'width'            => '300',
        'height'           => '',
        'max_size'         => '10', //10MB
        'thumb_width'      => '200',
        'thumb_height'     => '200',
        'thumb_bg'         => array(255, 255, 255), //white
    ),
    
    'product' => array( //unit is pixel
        'basename'         => 'products', //the directory in upload dir
        'prefix'           => 'prod_',
        'plupload_session' => 'pluploaded_file',
        'normal'           => array(
            'width'        => '950',
            'height'       => '540',
            'thumb_width'  => '300',
            'thumb_height' => '171',
        ),
        'small'            => array(
            'width'        => '220',
            'height'       => '280',
            'thumb_width'  => '220',
            'thumb_height' => '280',
        ),
        'max_size' => '10', //10MB
        'thumb_bg' => array(255, 255, 255), //white
    ),
    
    'product_2' => array( //unit is pixel
        'basename'         => 'products', //the directory in upload dir
        'prefix'           => 'prod_',
        'plupload_session' => 'pluploaded_file',
        'normal' => array(
            'width'        => '950',
            'height'       => '540',
            'thumb_width'  => '300',
            'thumb_height' => '171',
        ),
        'small' => array( //default
            'width'        => '140',
            'height'       => '140',
        ),
        'brand' => array(
            'width'        => '220',
            'height'       => '155',
        ),
        'web' => array(
            'width'        => '460',
            'height'       => '230',
        ),
        'printing' => array(
            'width'        => '140',
            'height'       => '140',
        ),
        'max_size' => '10', //10MB
        'thumb_bg' => array(255, 255, 255), //white
    ),
    
    'product_shop' => array( //unit is pixel
        'basename'     => 'products', //the directory in upload dir
        'max_width'    => '700',
        'max_height'   => '600',
        'max_size'     => '10', //10MB
        'upload_dir'    => __DIR__ . '/../../public/upload/products/',
        'upload_url'    => '../upload/products/',
        'thumb_width'  => '220',
        'thumb_height' => '160',
        'thumb_dir'    => __DIR__ . '/../../public/upload/products/thumb/',
        'thumb_url'    => '../upload/products/thumb/',
        'thumb_bg'     => array(255, 255, 255), //white
        'elfinder' => array(
            'base_path' => '../../../../../upload/products/', //path from assets to upload dir
            'base_url'  => '/00_My_cms_v1_sLang/public/upload/products/',
        ),
    ),
    
    'album' => array(
        'basename' => 'album',
        'width'    => '360',
        'height'   => '360',
        'max_size' => '10', //10MB
        'thumb_bg' => array(255, 255, 255), //white
    ),
    
    'preview' => array(
        'slideshow' => '/00_My_cms_v1_sLang/public/frontend/index.php?pvw=1',
        'newsletter_content' => '../frontend/dfront/news/detail',
        'product_shop' => '../frontend/dfront/product/detail',
    ),
    
    'file_manager' => array( //unit is pixel
        'basename'         => 'store', //the directory in upload dir
        'plupload_session' => 'file_manager',
        'max_width'        => '620',
        'max_height'       => '600',
        'base_path' => '../../../../upload/store/', //path from connector.php in assets to upload dir
        'base_url'  => '/00_My_cms_v1_sLang/public/upload/store/',
    ),
    
    'goc_anh' => array( //unit is pixel
        'basename'     => 'goc_anh', //the directory in upload dir
        'max_width'    => '460',
        'max_height'   => '306',
        'max_size'     => '10', //10MB
        'upload_dir'    => __DIR__ . '/../../public/upload/goc_anh/',
        'upload_url'    => '../upload/goc_anh/',
        'thumb_bg'     => array(255, 255, 255), //white
        'elfinder' => array(
            'base_path' => '../../../../upload/goc_anh/', //path from assets to upload dir
            'base_url'  => '/00_My_cms_v1_sLang/public/upload/goc_anh/',
        ),
    ),
    
    'id_reserved' => array(
        'newsletter_content' => array(1,2,3,4),
        'newsletter_type' => array(11,12),
    ),
);